package com.example.emailcraft.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author scj
 * @since 2025-01-21
 */
@Getter
@Setter
@TableName("user_templates")
public class UserTemplates implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属用户ID
     */
    private Integer userId;

    /**
     * 模板标题
     */
    private String title;

    /**
     * HTML内容
     */
    private String content;

    /**
     * 分类ID
     */
    private Integer categoryId;

    /**
     * 手动设置修改时间
     */
    private LocalDateTime createdAt;

    /**
     * 手动设置修改时间
     */
    private LocalDateTime updatedAt;
}
